package com.idelan.commonMessage.model;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
/**
* @Description:    java类作用描述
* @Author:         jzhou
* @CreateDate:     2018\7\19 0019 11:22
* @UpdateUser:     jzhou
* @UpdateDate:     2018\7\19 0019 11:22
* @UpdateRemark:   修改内容
* @Version:        1.0
*/
public class Mail163Parameter {
    @Email
    @NotBlank(message = "用户名不能为空")
    private String user;
    @NotBlank(message = "用户授权码不能为空")
     private String password;
    @Email
    @NotBlank(message = "发件人不能为空")
    private String sender;
    @Email
    @NotBlank(message = "收件人不能为空")
    private String received;
    @NotBlank(message = "邮件主题不能为空")
    private String subject;
    @NotBlank(message = "邮件内容不能为空")
    private String content;
    @NotBlank(message = "邮件内容格式不能为空")
    private String contentType;

    @Override
    public String toString() {
        return "MailParameter{" +
                "user='" + user + '\'' +
                ", password='" + password + '\'' +
                ", sender='" + sender + '\'' +
                ", received='" + received + '\'' +
                ", subject='" + subject + '\'' +
                ", content='" + content + '\'' +
                ", contentType='" + contentType + '\'' +
                '}';
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceived() {
        return received;
    }

    public void setReceived(String received) {
        this.received = received;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }
}
